From: Cosimo Cecchi Date: Wed, 20 Jun 2012 20:14:02 +0000 (-0400) Subject: mount-operation: fix indentation for some callbacks X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~6444 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=594c3174abd58a676f8b57c941f285e74c5cc2d3;p=gnome-shell.git mount-operation: fix indentation for some callbacks Nothing to see here, move along. https://bugzilla.gnome.org/show_bug.cgi?id=674962 --- diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js index 11cc613c1..dd4910a55 100644 --- a/js/ui/shellMountOperation.js +++ b/js/ui/shellMountOperation.js @@ -132,13 +132,13 @@ const ShellMountOperation = new Lang.Class({ this._closeExistingDialog(); this._dialog = new ShellMountQuestionDialog(this._gicon); - this._dialogId = this._dialog.connect('response', - Lang.bind(this, function(object, choice) { - this.mountOp.set_choice(choice); - this.mountOp.reply(Gio.MountOperationResult.HANDLED); + this._dialogId = this._dialog.connect('response', Lang.bind(this, + function(object, choice) { + this.mountOp.set_choice(choice); + this.mountOp.reply(Gio.MountOperationResult.HANDLED); - this.close(); - })); + this.close(); + })); this._dialog.update(message, choices); this._dialog.open(); @@ -190,17 +190,17 @@ const ShellMountOperation = new Lang.Class({ this._processesDialog = new ShellProcessesDialog(this._gicon); this._dialog = this._processesDialog; - this._dialogId = this._processesDialog.connect('response', - Lang.bind(this, function(object, choice) { - if (choice == -1) { - this.mountOp.reply(Gio.MountOperationResult.ABORTED); - } else { - this.mountOp.set_choice(choice); - this.mountOp.reply(Gio.MountOperationResult.HANDLED); - } - - this.close(); - })); + this._dialogId = this._processesDialog.connect('response', Lang.bind(this, + function(object, choice) { + if (choice == -1) { + this.mountOp.reply(Gio.MountOperationResult.ABORTED); + } else { + this.mountOp.set_choice(choice); + this.mountOp.reply(Gio.MountOperationResult.HANDLED); + } + + this.close(); + })); this._processesDialog.open(); }